package top.sehnsucht.service.impl;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.sehnsucht.dao.UserDao;
import top.sehnsucht.entity.User;
import top.sehnsucht.service.UserService;

/**
 * @Description:
 * @Author: Cai
 * @CreateTime: 2021/12/21
 */

public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }


    @Override
    public boolean selectUser(User user) {
        return userDao.selectUser(user);
    }

    @Override
    public int selectUserId(User user) {
        return userDao.selectUserId(user);
    }
}
